import React from 'react'
import { Table, Button } from 'antd'
import Tips from '../tips'

const dataSource = [
    {
        key: '1',
        name: '商家入驻',
        age: 32,
        updated_at: '2020-04-03 15:12:32',
    },
    {
        key: '2',
        name: '商家规则',
        age: 42,
        updated_at: '2020-04-03 15:12:32',
    },
    {
        key: '3',
        name: '入驻须知',
        age: 42,
        updated_at: '2020-04-03 15:12:32',
    },
    {
        key: '4',
        name: '站点加盟',
        age: 42,
        updated_at: '2020-04-03 15:12:32',
    },
];

const columns: any = [
    {
        title: '标题',
        dataIndex: 'name',
    },
    {
        title: '更新时间',
        dataIndex: 'updated_at',
    },
    {
        title: '操作',
        width: "160px",
        align: "center",
        render: (text: any, record: any) => <Button size="small" type="primary" ghost>编辑</Button>,
    },
];

export default () => {
    return (
        <div>
            <Tips dataList={["商家入驻时的操作介绍和需要遵循的规则介绍"]} />
            <Table dataSource={dataSource} columns={columns} pagination={false} />
        </div>
    )
}